const {merge} = require('webpack-merge');
const commonConfig = require('./webpack.common.js');
const webpack = require('webpack');

const devConfig = {
    mode:'development',
    devtool:'cheap-module-source-map',
    devServer:{
        hot:true,
        port:5050,
        open:true,
        compress:true
    },
    plugins: [
        new webpack.HotModuleReplacementPlugin()
    ]
}

module.exports =  merge(commonConfig, devConfig);